import {requestGet,requestPost} from '../utils/request.js'
// 获取商品分类
let getGoodsCate = ()=> requestGet(`categories`);

// 获取分类参数
let getParams = (id,type)=> requestGet(`categories/${id}/attributes?sel=${type}`)

// 上传商品图片
let uploadImg = (data)=>requestPost(`upload`,data)
export {
    getGoodsCate,
    getParams,
    uploadImg
}